package com.yyds.blackmagic.mapper;

import com.yyds.blackmagic.entity.AdminMenu;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AdminMenuMapper {
    List<AdminMenu> findByUsername (String username);

    List<AdminMenu> findAllByParentId (Integer id);

    List<AdminMenu> getMenusByRoleId (Integer id);

    int addMenuOfRole (int rid, Integer mid);
}
